<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- HTML5 shim for IE8 support of HTML5 elements -->
<!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->

<link
	href="/yxtcmf/public/simpleboot/themes/<?php echo C('SP_ADMIN_STYLE');?>/theme.min.css"
	rel="stylesheet">
<link href="/yxtcmf/public/simpleboot/css/simplebootadmin.css"
	rel="stylesheet">
<link href="/yxtcmf/public/js/artDialog/skins/default.css" rel="stylesheet" />
<link
	href="/yxtcmf/public/simpleboot/font-awesome/4.4.0/css/font-awesome.min.css"
	rel="stylesheet" type="text/css">
<style>
.length_3 {
	width: 180px;
}

form .input-order {
	margin-bottom: 0px;
	padding: 3px;
	width: 40px;
}

.table-actions {
	margin-top: 5px;
	margin-bottom: 5px;
	padding: 0px;
}

.table-list {
	margin-bottom: 0px;
}

.progress {
	overflow: hidden;
	height: 15px;
	margin-bottom: 5px;
	background-color: #f5f5f5;
	border-radius: 4px;
	-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar-success {
	background-color: #70d445;
}

.progress-bar {
	float: left;
	width: 0%;
	height: 100%;
	font-size: 12px;
	line-height: 20px;
	color: #fff;
	text-align: center;
	background-color: #46c37b;
	-webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
	-webkit-transition: width 0.6s ease;
	-o-transition: width 0.6s ease;
	transition: width 0.6s ease;
}
</style>
<!--[if IE 7]>
	<link rel="stylesheet" href="/yxtcmf/public/simpleboot/font-awesome/4.4.0/css/font-awesome-ie7.min.css">
	<![endif]-->
<script type="text/javascript">
//全局变量
var GV = {
    DIMAUB: "/yxtcmf/",
    JS_ROOT: "public/js/",
    TOKEN: ""
};
</script>
<!-- Le javascript
    ================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="/yxtcmf/public/js/jquery.js"></script>
<script src="/yxtcmf/public/js/wind.js"></script>
<script src="/yxtcmf/public/simpleboot/bootstrap/js/bootstrap.min.js"></script>
<?php if(APP_DEBUG): ?><style>
#think_page_trace_open {
	z-index: 9999;
}
</style><?php endif; ?>
<body class="J_scroll_fixed">
<div class="wrap js-check-wrap">
  <form class="well form-search" method="post" action="<?php echo u('AdminShiti/shitilist');?>">
    <div class="search_type cc mb10">
      <div class="mb10"> 
        <span class="mr20">分类：
         <select class="form-control" name="typeid">
			<option value="0">--按题型--</option>
			<option value="1">选择题</option>
			<option value="2">填空题</option>
			<option value="3">判断题</option>
			<option value="4">问答题</option>
			<option value="5">材料题</option>
		  </select>
            &nbsp; &nbsp;关键字：
        <input type="text" id="keyword" name="keyword" class="form-control" value="" placeholder="关键词">
        <input type="submit" class="btn" value="搜索"/>
        </span>
      </div>
    </div>
  </form>
    <?php $type=array("1"=>"选择题","2"=>"填空","3"=>"判断","4"=>"解答题","5"=>"材料题"); ?>
  <form class="js-ajax-form" action="" method="post">
      <table width="100%" class="table table-hover  table-list">
        <thead>
	          <tr>
	            <th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
	            <th width="40">ID</th>
	            <th>题干</th>
	            <th width="150">类型</th>
	            <th width="120">操作</th>
	          </tr>
        </thead>
        	
        	<?php if(is_array($shiti)): foreach($shiti as $key=>$vo): ?><tr> 
		            <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="<?php echo ($vo["id"]); ?>"></td>
		            <td><a><?php echo ($vo["id"]); ?></a></td>
		            <td><span><?php echo ($vo["stem"]); ?></span></td>
		            <td><?php echo ($type[$vo['typeid']]); ?></td>
		            <td>
		                <div class="btn-group">
						   <a  class="btn btn-default btn-sm" href="<?php echo u('AdminShiti/preview',array('id'=>$vo['id'],'type'=>$vo['typeid']));?>" data-toggle="modal" data-target="#myModal">预览</a>
                           <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                             <span class="caret"></span>
                             <span class="sr-only"></span>                             
                           </button>                          
                           <ul class="dropdown-menu pull-right" role="menu" >
                             <li><a href="<?php echo u('AdminShiti/delshiti',array('id'=>$vo['id']));?>" class="js-ajax-delete" data-subcheck="true" data-msg="你确定删除吗？">删除</a></li>
                           </ul>
                          </div>
					</td>
	          	</tr><?php endforeach; endif; ?>
          <thead>
	           <tr>
	            <th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
	            <th width="40">ID</th>
	            <th>题干</th>
	            <th>类型</th>
	            <th width="100">操作</th>
	          </tr>
        </thead>
          </table>
          <div class="pagination"><?php echo ($Page); ?></div>   
      <div class="form-actions">                       
        <button class="btn btn-primary js-ajax-submit" type="submit" data-action="<?php echo u('AdminShiti/delshiti');?>">删除</button>
      </div>
  </form>
</div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog"  aria-labelledby="myModalLabel" aria-hidden="true">
   <div class="modal-dialog">
      <div class="modal-content">
         <div class="modal-body">
          
         </div>
      </div>
   </div>
</div>
<script src="/yxtcmf/public/js/common.js"></script>
</body>
</html>